]> dgit.raspbian.org Git - gnome-shell.git/commit
st/scroll-view-fade: Add :extend-fade-area property
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 3 May 2021 17:39:06 +0000 (19:39 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 11 May 2021 13:21:40 +0000 (13:21 +0000)
commit3eda6729296591c46cb87ac86414f846c835ec2b
treebcf707dec09d9c1233da1ae98c5c928073907d4c
parent2b2a71832aed06bd34871974a1a9f365bb2bbb6b
st/scroll-view-fade: Add :extend-fade-area property

Since commit f60a469a34e, everything outside the fade area is painted
fully transparent. That is required for the fade effect during app
grid navigation, to prevent unfaded parts of surrounding pages
becoming visible on wide-screen displays.

However in most other cases, that behavior is the exact opposite
of what we want: Elements outside the fade area (like scroll bars)
should never fade.

In order to fix the regular case, hide the new behavior behind a
property.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4234

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1831>
src/st/st-scroll-view-fade.c
src/st/st-scroll-view-fade.glsl